﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMSModel;

public partial class Topics_Topics : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            CMSEntities cms = new CMSEntities();
            Repeater1.DataSource = cms.Topics2.OrderByDescending(x=>x.CTime);
            Repeater1.DataBind();
        }
    }
    protected void btnAdd_Click(object sender, EventArgs e)
    {
        Response.Redirect("Topics_step1.aspx");
    }
}